package com.zrf.testchatgpt.service;

import com.zrf.testchatgpt.entity.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IPermissionService {
    public List<Permission> queryByRoleId(Integer userid);
    public int updatePermissionById(@Param("userId") String userId,@Param("list") List<Integer> list);
    public int deletePermissionById(@Param("userId") String userId,@Param("list") List<Integer> list);
    public List<Integer> getPermissionByRoleId(String roleId);

    public  List<Integer> getPermissionByUserId(String userId);
}
